package com.teamclub.base.services.sendmsg;

import com.teamclub.util.Springs;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("SendMsgFactory")
public class SendMsgFactory implements FactoryBean<ISendMsg>{
    @Autowired
    Springs springs;
    @Override
    public Class<?> getObjectType() {
        return ISendMsg.class;
    }

    @Override
    public ISendMsg getObject() throws Exception {
        return springs.getBean(AliSendMsg.class);
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
